-- GENERATED SPELL FOR [Amani Crocolisk] --


function spell0_24047(pUnit, Event) --@Infected Bite,n/a--
pUnit:FullCastSpellOnTarget(43353,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24047', 8000, 1)
end

function spell1_24047(pUnit, Event) --@Tail Swipe,n/a--
pUnit:FullCastSpellOnTarget(43352,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24047', 608, 1)
end

function Sorts_24047(pUnit, Event)
local choix_sorts_24047 = math.random(0, 1)
if choix_sorts_24047 == 0 then
pUnit:RegisterEvent('spell0_24047', 1, 1)
end
if choix_sorts_24047 == 1 then
pUnit:RegisterEvent('spell1_24047', 1, 1)
end
end

function mob24047_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_24047', math.random(1500, 3000), 1)
end

function mob24047_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24047_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24047_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(24047, 1, 'mob24047_Action')
RegisterUnitEvent(24047, 2, 'mob24047_Leave')
RegisterUnitEvent(24047, 3, 'mob24047_Kill')
RegisterUnitEvent(24047, 4, 'mob24047_Die')
